@layout("/common/_form.html",{js:["/assets/dms/directoryFile/style/jquery-1.10.2.min.js","/assets/cms/ad/ad_edit.js"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<form class="layui-form" id="adForm" lay-filter="adForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <!--<div class="layui-card-header">基本信息</div>-->
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="adId" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">广告位置<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select name="apId" xm-select="selPosition" xm-select-radio="" xm-select-search="" lay-verify="required" required>
                                <option value="">直接选择或搜索选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">广告标题<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="title" name="title" placeholder="请输入标题" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">图片地址<span style="color: red;">*</span></label>
                        <!--<div class="layui-input-block">-->
                        <!--<input id="pic" name="pic" placeholder="请输入图片地址" type="text" class="layui-input" lay-verify="required" required/>-->
                        <!--</div>-->
                        <div class="layui-upload-list" style="margin-left: 108px" id="changeImg">
                            <img class="layui-upload-img changeImg" id="demo1"
                                 src="${ctxPath}/assets/common/images/blank.png"
                                 onerror="javascript:this.src='${ctxPath}/assets/common/images/blank.png';">
                            <p id="demoText"></p>
                            <input id="pic" name="pic" placeholder="" type="hidden" class="layui-input"
                                   lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">链接类型<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select name="urlType" lay-filter="selUrlType" id="selUrlType"  lay-verify="required" required>
                                <option value="">直接选择或搜索选择</option>
                                <option value="0">内部链接</option>
                                <option value="1">外部链接</option>
                            </select>

                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">链接地址<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="url" name="url" placeholder="请输入url链接" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">排序<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="sort" name="sort" placeholder="请输入排序" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}